home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / ScrollView.h < prev    next >
Text File  |  1992-09-11  |  3KB  |  89 lines

  1. /*
  2.     ScrollView.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "Box.h"
  8. #import "color.h"
  9.  
  10. @interface ScrollView : View
  11. {
  12.     id                  vScroller;
  13.     id                  hScroller;
  14.     id                  contentView;
  15.     float               pageContext;
  16.     float               lineAmount;
  17.     struct __sFlags {
  18. #ifdef __BIG_ENDIAN__
  19.     unsigned int        vScrollerRequired:1;
  20.     unsigned int        hScrollerRequired:1;
  21.     unsigned int        vScrollerStatus:1;
  22.     unsigned int        hScrollerStatus:1;
  23.     unsigned int        noDynamicScrolling:1;
  24.     unsigned int        borderType:2;
  25.     unsigned int        rulerInstalled:1;
  26.     unsigned int        _RESERVED:8;
  27. #else
  28.     unsigned int        _RESERVED:8;
  29.     unsigned int        rulerInstalled:1;
  30.     unsigned int        borderType:2;
  31.     unsigned int        noDynamicScrolling:1;
  32.     unsigned int        hScrollerStatus:1;
  33.     unsigned int        vScrollerStatus:1;
  34.     unsigned int        hScrollerRequired:1;
  35.     unsigned int        vScrollerRequired:1;
  36. #endif
  37.     }                   _sFlags;
  38.     id                  _ruler;
  39. }
  40.  
  41. + getFrameSize:(NXSize *)fSize forContentSize:(const NXSize *)cSize horizScroller:(BOOL)hFlag vertScroller:(BOOL)vFlag borderType:(int)aType;
  42. + getContentSize:(NXSize *)cSize forFrameSize:(const NXSize *)fSize horizScroller:(BOOL)hFlag vertScroller:(BOOL)vFlag borderType:(int)aType;
  43.  
  44. - initFrame:(const NXRect *)frameRect;
  45. - getDocVisibleRect:(NXRect *)aRect;
  46. - getContentSize:(NXSize *)contentViewSize;
  47. - resizeSubviews:(const NXSize *)oldSize;
  48. - drawSelf:(const NXRect *)rects :(int)rectCount;
  49. - setDocView:aView;
  50. - docView;
  51. - setDocCursor:anObj;
  52. - (int)borderType;
  53. - setBorderType:(int)aType;
  54. - setBackgroundGray:(float)value;
  55. - (float)backgroundGray;
  56. - setBackgroundColor:(NXColor)color;
  57. - (NXColor)backgroundColor;
  58. - setVertScrollerRequired:(BOOL)flag;
  59. - setHorizScrollerRequired:(BOOL)flag;
  60. - vertScroller;
  61. - horizScroller;
  62. - setVertScroller:anObject;
  63. - setHorizScroller:anObject;
  64. - setLineScroll:(float)value;
  65. - setPageScroll:(float)value;
  66. - setCopyOnScroll:(BOOL)flag;
  67. - setDisplayOnScroll:(BOOL)flag;
  68. - setDynamicScrolling:(BOOL)flag;
  69. - tile;
  70. - reflectScroll:cView;
  71. - write:(NXTypedStream *)stream;
  72. - read:(NXTypedStream *)stream;
  73.  
  74. /* 
  75.  * The following new... methods are now obsolete.  They remain in this  
  76.  * interface file for backward compatibility only.  Use Object's alloc method  
  77.  * and the init... methods defined in this class instead.
  78.  */
  79. + newFrame:(const NXRect *)frameRect;
  80. + new;
  81.  
  82. @end
  83.  
  84. @interface ScrollView(Ruler)
  85. - toggleRuler:sender;
  86. - ruler;
  87. @end
  88.  
  89.